<ion-view view-title="{{language == 0?'购物车':'Shopping Cart'}}">
  <ion-content class="normal_box bg" delegate-handle="mainScroll" overflow-scroll="false">

    <div class="cart">
      <!-- 有商品记录 -->
      <div class="normal_box pd15" ng-repeat="list in orders" ng-if="orders">

        <div class="ticket_box1 nomargin">
          <div class="div_img1" style="background-image: url({{fullPath(list.product_cover)}});">
             <!-- <img src="{{fullPath(list.product_cover)}}"/> -->
          </div>
          <p class="ticket_line2">{{language == 0?list.product_name:list.product_name_en}}</p>
          <span class="ticket_type">{{language == 0?list.attr_name:list.attr_name_en}}</span>
          <span class="ticket_price color_black" ng-if="list.activity_price != 0&&ticket.activity_price!=ticket.price"><span class="tdlt f14 grayf"><i class="f14 grayf">￥</i>{{list.price}} </span><i> ￥</i>{{list.activity_price}}</span>

          <span class="ticket_price color_black" ng-if="list.activity_price == 0||(ticket.activity_price==ticket.price)"><i> ￥</i>{{list.price}}</span>

          <span class="ticket_minuse1" ng-click="delete(list)">-</span>
          <span class="ticket_num2" style="font-size:20px;" ng-click="fillQuantity(list)">{{list.quantity}}</span>
          <span class="ticket_plus1" ng-click="add(list)">+</span>

        </div>

      </div>

    </div>

    <div class="normal_box pd15" ng-show="(allquantity&&allquantity != 0)&&(height2 > height1)" ng-click="gotoCheckpay()">
        <div class="w100 pd0_2">
          <button class="ticket_buy" ng-if="language == 0" ng-click="payOrder()">结算<span class="ticket_money"> {{allquantity}}件</span><span class="ticket_money">共￥<span>{{allprice}}</span></span></button>

          <button class="ticket_buy" ng-if="language == 1" ng-click="payOrder()">Pay <span class="ticket_money">￥<span>{{allprice}} in total</span></span></button>
        </div>
    </div>

    

  </ion-content>

  <!-- 无门票 -->
  <div class="noinfo_span" ng-if="!orders">
    购物车空空如也，快去选购吧！
  </div>

  <div class="normal_box pd15 pos_f b10" ng-show="(allquantity&&allquantity != 0)&&(height2 <= height1)">
      <div class="w100 pd0_2">
        <button class="ticket_buy" ng-if="language == 0" ng-disabled="cannot == 1" ng-click="gotoCheckpay()">结算<span class="ticket_money"> {{allquantity}}件</span><span class="ticket_money">共￥<span>{{allprice}}</span></span></button>

        <button class="ticket_buy" ng-if="language == 1" ng-disabled="cannot == 1" ng-click="gotoCheckpay()">Pay <span class="ticket_money">￥<span>{{allprice}} in total</span></span></button>
      </div>
  </div>

  <!-- 输入数量 -->
  <div class="mubu_white pd165_22_0" ng-if="show_quan == 1">

    <div class="pay_guide">
      <div class="guide_input">
        <input placeholder="输入数量，最大为999" ng-model="thisquan.quantity" style="color:#333;" maxlength=3 />
        <button class="guide_btn_half1" ng-disabled="!thisquan.quantity||thisquan.quantity == 0" ng-click="save1(thisquan)">确认</button>
        <button class="guide_btn_half2" ng-click="canclesave()">取消</button>
      </div>
    </div>

  </div>

</ion-view>